package com.weitao.marketserver.controller;

import com.weitao.marketserver.config.ConfigCache;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/menus")
public class MenusCon {

    @RequestMapping("/menulist")
    public List<com.weitao.marketserver.pojo.Menus> getMenus(){
        return ConfigCache.menuList;
    }
}
